package com.job.sun;

import sun.applet.Main;

import java.time.OffsetDateTime;

/**
 * @author 张春阳
 * @version 1.0
 * @since 2022-07-07 10:52:50
 */
public class HomeWorkThree0705 {
    //100元钱买100只鸡 公鸡三元一只 母鸡5元一只 小鸡一元三只
    public static void main(String[] args) {
        double n, m, t;
        for (int i = 1; i <= 100; i++) {
            for (int j = 1; j <= 100 - i; j++) {
                n = i;
                m = j;
                t = 100 - i - j;
                if (n * 3 + m * 5 + t / 3 == 100) {
                    System.out.println("公鸡的数量是"+n+"母鸡的数量是" + m + "小鸡的数量是" + t);

                }
            }
        }
    }


}